package com.gitee.sdlszjb.page;

import javax.servlet.http.HttpServletRequest;
import java.io.Serializable;

/**
 * @author 庄壮壮
 * @since 2019-01-15 16:36
 */
public class AniviaPaginationRequest implements Serializable {
    private HttpServletRequest request;
    private int size;
    private int page;
    private String sort;
    private String order;

    public HttpServletRequest getRequest() {
        return request;
    }

    public void setRequest(HttpServletRequest request) {
        this.request = request;
    }

    public int getSize() {
        if (size < 1) size = 1;
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getPage() {
        if (page < 1) page = 1;
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }
}
